package com.daxt.service;

import com.daxt.common.result.Result;
import com.daxt.model.dto.FileParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.InputStream;

public interface UploadService {

	/**
	 * @description: 文件上传
	 * @author: lig
	 * @date: 2021/8/27
	 */
	String upload(FileParam fileParam);


	/**
	 * @description: 上传到本地
	 *
	 * @author: lig
	 * @date: 2021/12/24
	 */
	Result<String> localUpload(String bucketName,String type,MultipartFile file);



	/**
	 * @description: 移除文件
	 *
	 * @author: lig
	 * @date: 2021/12/24
	 */
	Result<String> removeFile(String url);


	/**
	 * @description: 获取文件
	 *
	 * @author: lig
	 * @date: 2021/12/24
	 */
	File gainFile(String url);

}
